package com.objection.Person;

public class Student extends Person{
    public static void main(String[] args) {
        var studentA = new Student("A", 18, "female", 6);
        studentA.getStudentInfo();
    }
    public final int grade;
    public Student(String name, int age, String sex, int grade) {
        super(name, age, sex);
        this.grade = grade;
    }

    public void getStudentInfo() {
        this.getPersonalInfo();
        System.out.println(" grade: " + this.grade);
    }
}
